package com.wzcl.app.model.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = false)
@Data
public class CourseMaterialDto extends BaseDto{

    @NotNull(message = "课程ID不能为空")
    @ApiModelProperty(name = "课程ID")
    private Integer courseId;

    @NotNull(message = "物品Id不能为空")
    @ApiModelProperty(name = "物品Id")
    private Integer materialId;

    @ApiModelProperty(name = "物品名字")
    private String name;

    @ApiModelProperty(value = "商品描述")
    private String description;
}
